<div class='detail-wr'>
  <div class='content-wr'>
    <% if order.pending? %>
      <a class='do-confirm js-to-confirm' data-id="<%= order.id %>" href='javascript:void(0);'>订单确认&nbsp&nbsp</a>
      <a class='do-confirm-deal js-to-process' data-id="<%= order.id %>" href='javascript:void(0);' >处理订单</a><br>
      <a class='do-modify js-to-mail' data-id="<%= order.id %>" data-status="<%= order.status %>" href='javascript:void(0);'>确认发货&nbsp&nbsp</a>
      <a class='do-cancel js-to-cancel' href='javascript:void(0);' data-id="<%= order.id %>" >取消</a>
    <% elsif order.confirming? %>
      <span class='do-confirm'>订单确认&nbsp&nbsp</span>
      <a class='do-confirm-deal js-to-process' data-id="<%= order.id %>" href='javascript:void(0);'>处理订单</a><br>
      <a class='do-modify js-to-mail' href='javascript:void(0);' data-status="<%= order.status %>" data-id="<%= order.id %>" >确认发货&nbsp&nbsp</a>
      <a class='do-cancel js-to-cancel' href='javascript:void(0);' data-id="<%= order.id %>" >取消</a>
    <% elsif order.processing? %>
      <span class='do-confirm'>订单确认&nbsp&nbsp</span>
      <span class="do-confirm-deal">处理订单</span></br>
      <a class='do-modify js-to-mail' data-id="<%= order.id %>" data-status="<%= order.status %>" href='javascript:void(0);'>确认发货&nbsp&nbsp</a>
      <span>取消</span>
      <!-- <a class='do-cancel' href='javascript:void(0);' data-id="<%= order.id %>">取消</a> -->
    <% else %>
      <span>订单确认&nbsp&nbsp</span>
      <span>处理订单</span></br>
      <span>确认发货&nbsp&nbsp</span>
      <span>取消</span>
    <% end %>
  </div>
</div>
